package dnem;


import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.firefox.FirefoxDriver;

public class Pageresult {

    private final WebDriver driver;

    public Pageresult(WebDriver driver) {
        this.driver=driver;
    }

    public String getFirstbred(String xxx) {

        return driver.findElement(By.xpath(xxx)).getText();
    }
}
